#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	char a = 0;
	char b = 0;
	char c = 0;
	char d = 0;
	scanf("%c%c%c.%c", &a, &b, &c, &d);
	printf("%c.%c%c%c\n", d, c, b, a);
	return 0;
}